package com.piaodekuai.flight.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

//@RestController
@Controller
public class adminFlightController {

    @RequestMapping("/login2")
    public String login1(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "adminFlight/login";
    }

    @RequestMapping("/flight_index")
    public String flight_index(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "adminFlight/flight_index";
    }

    @RequestMapping("/flightManagement")
    public String flightManagement(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "adminFlight/flightManagement";
    }

    @RequestMapping("/planeManagement")
    public String planeManagement(Model m) throws Exception {

        if(false){
            throw new Exception("some exception");
        }

        //return "Hello Spring Boot!";
        return "adminFlight/planeManagement";
    }
}
